<?php
/**
 * Classe REPOSITORY da tabela TB_PARAM_CIVIL
 * 
 * @author			Mário R. Castro
 * @copyright		Voitech Sistema
 * @package			SEMAS
 * @subpackage		semas.application.models
 * @version			1.0
*/
class App_Model_ParamEstadoCivilRepository{

    public function listarTodos(array $arrParametro) {
        $arrDbParamCivil = App_Model_Db_ParamEstadoCivil::build()->listarTodos(new Voitech_TO($arrParametro));
        $arrParamCivil = array();
        foreach($arrDbParamCivil as $row) {
            $obParamCivilMapper = new App_Model_ParamEstadoCivilMapper(new App_Model_ParamEstadoCivil());
            $arrParamCivil[] = $obParamCivilMapper->carregar($row)->getObModel();
        }
        return $arrParamCivil;
    }
    
}